﻿namespace RuoVea.OmiSystem.Options;

/// <summary>
/// 纯用户管理、用户角色管理、用户角色权限、用户角色机构、用户角色权限机构
/// </summary>
public enum SystemType
{
    /// <summary>
    /// 纯用户管理 
    /// </summary>
    OnlyUser = 10,
    /// <summary>
    /// 用户角色管理
    /// </summary>
    UserRoles = 1020,
    /// <summary>
    /// 用户角色权限
    /// </summary>
    UserRolesMenu = 102030,
    /// <summary>
    /// 用户角色机构
    /// </summary>
    UserRolesOrg = 102040,
    /// <summary>
    /// 用户角色权限机构
    /// </summary>
    UserRolesMenuOrg = 10203040
}

/// <summary>
/// 
/// </summary>
public class AppConfig
{
    /// <summary>
    /// 路由前缀
    /// </summary>
    public string PrefixRoute { get; set; }
    /// <summary>
    /// API分组
    /// </summary>
    public string GroupName { get; set; }

    /// <summary>
    /// 是否是系统参数
    /// </summary>
    public bool SysFlag { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public SystemType SystemType { get; set; } = SystemType.OnlyUser;
    /// <summary>
    /// 显示基础字段
    /// </summary>
    public bool ShowAuditable { get; set; }
}
